package com.student.demo.dao;

import com.student.demo.entiy.Student;
import com.student.demo.entiy.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface LoginDao {
    List<User> queryUser();
    int queryId(String userName);
    String queryUserName(int id);
    void register(@Param("userName") String userName, @Param("phoneNumber") String phoneNumber, @Param("password") String password);
}
